package com.autonavi.yunda.yunji.core.model.condition;

import com.autonavi.yunda.yunji.core.enums.InterfaceBuildType;
import com.autonavi.yunda.yunji.core.enums.InterfaceStatus;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import java.util.List;


/**
 * @author cizhong.wcs
 * @date 2022/7/20 19:20
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class InterfaceQueryCondition {
    /**
     * yunji_interface_config主键id
     */
    public Long id;
    /**
     * 接口名称
     */
    public String name;
    /**
     * 接口uri
     */
    public String uri;
    /**
     * 项目id
     */
    public String projectId;
    /**
     * 项目id集合
     */
    public List<String> projectIds;
    /**
     * 编排模式
     */
    public InterfaceBuildType buildType;
    /**
     * 项目类型
     */
    public String projectType;
    /**
     * 接口状态
     */
    public InterfaceStatus status;
    /**
     * uri集合
     */
    public List<String> uris;
    /**
     * 接口版本
     */
    public String version;
    /**
     * 页码
     */
    @NotNull
    public Integer pageNo;
    /**
     * 每页显示的记录数
     */
    @NotNull
    public Integer pageSize;
}
